type IType = 'Creator' | 'Creator3D';

const types: { [key in IType]: IType } = {
    'Creator': 'Creator',
    'Creator3D': 'Creator3D'
};

const gits = {
    [types.Creator]: 'https://gitee.com/cocos2d-zp/cococs-creator-frame-2d.git',
    [types.Creator3D]: 'https://gitee.com/cocos2d-zp/xforge.git'
};

const pkgs = [
    {
        name: '@gamex/cc-expand',
        type: '模块',
        desc: '属性扩展: node.x、node.scaleX等'
    },
    {
        name: '@gamex/cc-store',
        type: '模块',
        desc: '状态管理，数据变化自动更新UI'
    },
    {
        name: '@gamex/cc-request',
        type: '模块',
        desc: 'POST|GET网络请求'
    },
    {
        name: '@gamex/cc-number',
        type: '模块',
        desc: '防内存挂数字类型'
    },
    {
        name: '@gamex/cc-random',
        type: '模块',
        desc: '种子随机'
    },
    {
        name: '@gamex/cc-astar',
        type: '模块',
        desc: 'A星巡路，支持4/6/8方向及路径平滑'
    },
    {
        name: '@gamex/cc-quadtree',
        type: '模块',
        desc: '四叉碰撞树'
    },
    {
        name: '@gamex/cc-sap',
        type: '模块',
        desc: 'SAP碰撞检测'
    },
    {
        name: '@gamex/cc-sat',
        type: '模块',
        desc: 'SAT碰撞检测'
    },
    {
        name: '@gamex/cc-rvo2',
        type: '模块',
        desc: '动态避障'
    },
    {
        name: '@gamex/cc-ecs',
        type: '模块',
        desc: '实体-组件-系统'
    },
    {
        name: '@gamex/cc-emath',
        type: '模块',
        desc: '精确数学运算，替换原生Math下三角函数运算并添加随机种子能力'
    },
    {
        name: '@gamex/cc-decimal',
        type: '模块',
        desc: '定点数学运算'
    },
    {
        name: '@gamex/cc-decimal-vec2',
        type: '模块',
        desc: '定点数二维向量'
    },
    {
        name: '@gamex/cc-decimal-vec3',
        type: '模块',
        desc: '定点数三维向量'
    },
    {
        name: '@gamex/cc-decimal-sat',
        type: '模块',
        desc: '定点数SAT碰撞检测'
    },
    {
        name: '@gamex/cc-decimal-sap',
        type: '模块',
        desc: '定点数SAP碰撞检测'
    },
    {
        name: '@gamex/cc-decimal-random',
        type: '模块',
        desc: '定点数随机'
    },
    {
        name: '@gamex/cc-xml-parser',
        type: '模块',
        desc: 'XML解析'
    },
    {
        name: '@gamex/cc-minisdk',
        type: '模块',
        desc: '小游戏SDK模块'
    },
    {
        name: '@gamex/cc-comp-toggle',
        type: '组件',
        desc: 'Toggle组件'
    },
    {
        name: '@gamex/cc-comp-rich-text',
        type: '组件',
        desc: 'RichText组件'
    },
    {
        name: '@gamex/cc-comp-spring-arm',
        type: '组件',
        desc: '弹簧臂组件'
    },
    {
        name: '@gamex/cc-comp-animation',
        type: '组件',
        desc: 'Animation组件'
    },
    {
        name: '@gamex/cc-comp-skeleton',
        type: '组件',
        desc: 'Spine组件'
    },
    {
        name: '@gamex/cc-comp-skeletal-animation',
        type: '组件',
        desc: '3D骨骼动画组件'
    },
    {
        name: '@gamex/cc-comp-movie-animation',
        type: '组件',
        desc: 'MovieClip播放组件'
    },
    {
        name: '@gamex/cc-comp-frame-animation',
        type: '组件',
        desc: '帧动画播放组件'
    },
    {
        name: '@gamex/cc-comp-rewardfly',
        type: '组件',
        desc: '奖励飞行动画组件'
    },
    {
        name: '@gamex/cc-ctrl-toast',
        type: '控件',
        desc: '消息提示控件'
    },
    {
        name: '@gamex/cc-ctrl-rocker',
        type: '控件',
        desc: '摇杆控件'
    },
];

const examples = {
    'UI管理(2D与3D开发)': 'https://gitee.com/cocos2d-zp/xforge-ui.git',
    '飞机大战(ECS+SAP)': 'https://gitee.com/cocos2d-zp/air-war.git',
    '碰撞检测(SAP+SAT)': 'https://gitee.com/cocos2d-zp/xforge-collision.git',
};

export default {
    types: types,
    gits: gits,
    pkgs: pkgs,
    examples: examples
};